<template>
	<a-config-provider :locale="locale.antLocale" :theme="configProvideTheme">
		<RouterView class="root-box-layout" />
	</a-config-provider>
</template>

<script setup lang="ts">
import { useTheme } from './hooks/theme';
import { useLocale } from './hooks/locale';

// 实现内置的国际化
const { locale } = useLocale();

// 实现内置的主题切换
const { configProvideTheme } = useTheme();
</script>

<style lang="less">
@import url('./style/index.css');
</style>
